home *** CD-ROM | disk | FTP | other *** search
- head 1.2;
- branch ;
- access ;
- symbols ;
- locks ; strict;
- comment @# @;
-
-
- 1.2
- date 90.11.12.17.44.41; author kupfer; state Exp;
- branches ;
- next 1.1;
-
- 1.1
- date 90.11.09.14.08.53; author kupfer; state Exp;
- branches ;
- next ;
-
-
- desc
- @Script to check a host's IP server and restart it if necessary.
- Originally /hosts/allspice/checkIPServer.
- @
-
-
- 1.2
- log
- @restartIPServer is now in /sprite/admin.$MACHINE.
- @
- text
- @#!/bin/csh -f
- #
- # checkIPServer: Script to check up on a hosts ipServer, and restart
- # it if needed.
- #
- # $Header: /sprite/src/admin/checkIPServer/RCS/checkIPServer,v 1.1 90/11/09 14:08:53 kupfer Exp Locker: kupfer $
-
- # See if it's in the debugger.
- set pid=`ps -ad | egrep ipServer | awk '{print $1}'`
- if (X$pid == "X") then
- # See if it went away completely.
- set pid=`ps -a | egrep ipServer | sed '/egrep/d' | awk '{print $1}'`
- if (X$pid != "X") then
- exit
- endif
- endif
-
- echo "IPSERVER found DEAD at `date`" > /dev/syslog
- set host=`hostname`
- if (-e /hosts/$host/restartIPServer) then
- /hosts/$host/restartIPServer >& /dev/syslog
- else
- /sprite/admin.$MACHINE/restartIPServer >& /dev/syslog
- endif
-
- if ($#argv > 0) then
- echo "IPServer on $host died and was restarted" | mail spriters
- endif
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d6 1
- a6 1
- # $Header: /hosts/allspice.Berkeley.EDU/RCS/checkIPServer,v 1.2 90/10/17 12:32:34 kupfer Exp $
- d23 1
- a23 1
- /sprite/admin/scripts/restartIPServer >& /dev/syslog
- @
-